package com.shtel.paas.monitorcenter.config.management.warning.contects.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.shtel.paas.monitorcenter.config.management.warning.contects.entity.MonitorCenterHostInfomationVo;
import com.shtel.paas.monitorcenter.config.management.warning.contects.entity.alarmResponseDaoEntity;
import com.shtel.paas.monitorcenter.config.management.warning.contects.entity.alarmResponseDto;
import com.shtel.paas.monitorcenter.view.dispaly.host.monitor.vo.selecthostMonitorTreeDataVo;

public interface warningContectsDao {

	List<alarmResponseDaoEntity> selectAll(@Param(value = "ip") String ip);

	List<String> selectIp();

	Integer selectHostId(@Param(value = "id") Integer id);

	int updateAlarmContects(@Param(value = "id") String id,
			@Param(value = "ip") String ip);

	int updateAlarmResponse(alarmResponseDto dto);

	int deleteAlarmContects(@Param(value = "id") String id);

	int deleteAlarmResponse(@Param(value = "hostId") String hostId);

	int insertAlarmResponse(alarmResponseDto dto);

	int insertAlarmContects(@Param(value = "hostId") String hostId);

	/**
	 * 查询未配置IP地址和systemName
	 * 
	 * @param:
	 * @author: zhangyy
	 * @Date: 2018.05.15
	 * @return: list
	 */
	List<MonitorCenterHostInfomationVo> selectIpsAndSystemName();

	/**
	 * 列表IP地址查询
	 * 
	 * @param:
	 * @author: zhongzhoachuan
	 * @Date: 2018.05.26
	 * @return: list
	 */
	List<selecthostMonitorTreeDataVo> selecIpTreeData();

	/**
	 * 异步获取动态树的第三层节点数据
	 * 
	 * @param:
	 * @author: zhongzhaochuan
	 * @Date: 2018.05.26
	 * @return: list
	 */
	List<selecthostMonitorTreeDataVo> asyncSelectIpTreeData(String commentId);

	List<MonitorCenterHostInfomationVo> selectAllIp(String hostId);

	int insertAlarmContects(String hostId, String ip);

	void updateDeleteContects(String ip, String string);

	Integer selecthostIdIsExist(alarmResponseDto dto);
}
